package com.develop.BeanUtils;

public enum TopicType {
	realTimeAlarm(0, "realTimeAlarm"), syncAlarmFile(7, "syncAlarmFile");

	private String name;
	private int index;

	private TopicType(int index, String name) {
		this.name = name;
		this.index = index;
	}

	public String getName() {
		return name;
	}

	public int getIndex() {
		return index;
	}

	public static void main(String[] args) {
		System.out.println(TopicType.realTimeAlarm);
		System.out.println(TopicType.realTimeAlarm.getIndex());
	}
}
